Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug #1782, forbidden chars in ID PATCH v2 #1787

Merged
merged 2 commits into from
Feb 12, 2016

Conversation

crbrox
Copy link
Member

@crbrox crbrox commented Feb 11, 2016

Fix bug #1782, forbidden chars in ID PATCH v2

@kzangeli
@fgalan

OrionError oe(SccBadRequest, "invalid character in URI");
return oe.render(ciP, "");
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like something that should be done for all v2 requests (perhaps v1 also),
not only PATCH /v2/entities/{eid} ...
Should the check be on a higher level?
Somewhere in rest.cpp ...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, it's only about the ID, not the whole path ...

NTC

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll check other 'paths' with ID for this point. If any is found, we can create an issue for all them and solve them in the same PR ...

@kzangeli
Copy link
Member

LGTM

@@ -16,3 +16,5 @@
- Add: type param for POST entity in v2 (Issue #982, #984)
- Add: support for geo:point type as a way of specifying location attribute in NGSIv2 (Issue #1038)
- Add: type param for PUT entity in v2 (Issue #988, #992, #1000)
- Fix: not detecting forbidden chars in ID for PATH v2 (Issue #1782)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in ID -> in entityID ?
PATH -> PATCH ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed 297de23

@fgalan
Copy link
Member

fgalan commented Feb 12, 2016

LGTM

fgalan pushed a commit that referenced this pull request Feb 12, 2016
…_uri_patch

Fix bug #1782, forbidden chars in ID PATCH v2
@fgalan fgalan merged commit a10f563 into develop Feb 12, 2016
@fgalan fgalan deleted the bug/1782_forbidden_char_id_uri_patch branch February 12, 2016 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants